python中"\n"是什么意思啊?
来源:百度知道 编辑:UC知道 时间:2024/06/08 12:04:10
复杂点说 也就是 换行。。
比如
print "hello\nworld"
效果就是
hello
world
"\n"就是一个换行符
new line
\n 代表换行,print出来一个新行
\ 是在编写程序中句子太长,人为换行后加上\但print出来是一整行
简单说就是换行
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑:UC知道 时间:2024/06/08 12:04:10
复杂点说 也就是 换行。。
比如
print "hello\nworld"
效果就是
hello
world
"\n"就是一个换行符
new line
\n 代表换行,print出来一个新行
\ 是在编写程序中句子太长,人为换行后加上\但print出来是一整行
简单说就是换行